QuickOPC User's Guide and Reference
DiscoverNetworkServers(IEnumerable<String>) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > EasyUAClientCore Class > DiscoverNetworkServers Method : DiscoverNetworkServers(IEnumerable<String>) Method
List of Server capability filters. Only records with all of the specified server capabilities are returned.
Discovers available OPC-UA servers on the network and returns information about them, using the default discovery host, and specifying the capabilities that the servers must have.
Syntax
'Declaration
 
<ElementsNotNullAttribute()>
<NotNullAttribute()>
Public Overloads Function DiscoverNetworkServers( _
   ByVal serverCapabilityFilter As IEnumerable(Of String) _
) As UADiscoveryElementCollection
'Usage
 
Dim instance As EasyUAClientCore
Dim serverCapabilityFilter As IEnumerable(Of String)
Dim value As UADiscoveryElementCollection
 
value = instance.DiscoverNetworkServers(serverCapabilityFilter)
[ElementsNotNull()]
[NotNull()]
public UADiscoveryElementCollection DiscoverNetworkServers( 
   IEnumerable<string> serverCapabilityFilter
)
[ElementsNotNull()]
[NotNull()]
public:
UADiscoveryElementCollection^ DiscoverNetworkServers( 
   IEnumerable<String^>^ serverCapabilityFilter
) 

Parameters

serverCapabilityFilter
List of Server capability filters. Only records with all of the specified server capabilities are returned.

Return Value

Returns a collection of application elements (usually servers, OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement).
Remarks

This method uses the so-called Local Discovery Server (LDS). You can influence how the discovery works using the properties in SharedParameters. The name of the machine that runs the discovery is determined by OpcLabs.EasyOpc.UA.Engine.EasyUAInstanceParameters.DiscoveryHost in InstanceParameters, and defaults to "localhost".

Invokes the FindServersOnNetwork service.

See also in Knowledge Base: Technical note-OPC UA Discovery in QuickOPC.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also